﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Erik/Erik.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    Homework stuff
    </p>

    <div class="courseItems">
    <ul>
    <% 
        foreach (DerptelligenceSite.Models.Erik.CourseItem item in (IEnumerable<DerptelligenceSite.Models.Erik.CourseItem>)ViewData["Courses"])
        {
         %>
         <li>
         <a href="homework?course=<%: item.ID %>" title="<%: item.Description %>"> <%: item.Title %> </a>
         </li>
         <% } %>
         </ul>
    </div> 
    <div>
    <% 
        foreach (DerptelligenceSite.Models.Erik.HomeworkItem item in (IEnumerable<DerptelligenceSite.Models.Erik.HomeworkItem>)ViewData["HomeworkItems"])
        {
         %>
         <div>
            <h2><a href="homework?id=<%: item.ID %>"> <%: item.Title %></a></h2>
            <p> <%: item.PublishDate %></p>
         </div>
         <% } %>
    </div>
</asp:Content>
